[rush] Add bridge-cache plugin#5190
Merged
iclanton merged 13 commits intomicrosoft:mainfrom Jun 10, 2025
Merged
Conversation
dmichon-msft
reviewed
Apr 9, 2025
a457102 to
c3fdcc9
Compare
iclanton
reviewed
Apr 30, 2025
c3fdcc9 to
132f76d
Compare
4b7bea1 to
e49f90a
Compare
23f7f9f to
83eed95
Compare
iclanton
reviewed
Jun 2, 2025
common/changes/@microsoft/rush/benkeen-cache-bridge-plugin_2025-05-30-18-02.json
Outdated
Show resolved
Hide resolved
…5-05-30-18-02.json Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
Co-authored-by: Ian Clanton-Thuon <iclanton@users.noreply.github.com>
dmichon-msft
reviewed
Jun 2, 2025
added 2 commits
June 3, 2025 12:44
dmichon-msft
reviewed
Jun 3, 2025
libraries/rush-lib/src/logic/operations/IOperationExecutionResult.ts
Outdated
Show resolved
Hide resolved
768fded to
cecce15
Compare
dmichon-msft
approved these changes
Jun 4, 2025
iclanton
reviewed
Jun 10, 2025
iclanton
approved these changes
Jun 10, 2025
Contributor
Author
|
Thanks @iclanton & @dmichon-msft! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds a plugin which allows users to run a Rush command, but only populate the cache from a previous run of that action, not actually run the command.
For instance:
Each of these would populate the cache for one or more package actions from whatever was found on disk, as defined for the output folder(s) for the commands in
rush-project.json. The command itself (build, test, lint) won't get run.Why?
We're using a different build orchestrator to handle some high-volume builds (BuildXL), primarily because it's able to farm out work across agents, not just processes. As a build orchestrator, it does exactly the same work as what Rush would have done, but has its own cache. We rely on our current (Rush) pipeline populating the remote cache so our local builds are snappy. Without the feature in this PR, we'd need a separate pipeline running in addition to our main pipeline, solely to populate the Rush cache.